<div class="actions">
	<ul>
		<li><?php 
			if ($curUser['User']['ROLE'] != 'admin')
				echo $html->link(__('Sửa sổ tay', true), array('action' => 'edit', $sotay['Sotay']['id'])); ?> </li>
		<li><?php 	if ($curUser['User']['ROLE'] != 'admin')
						echo $html->link(__('Xóa sổ tay', true), array('action' => 'delete', $sotay['Sotay']['id']), null, sprintf(__('Bạn thật sự muốn xóa: # %s?', true), $sotay['Sotay']['id'])); ?> </li>
		<li><?php echo $html->link(__('Danh sách sổ tay', true), array('action' => 'index',$sotay['Nongho']['id'])); ?> </li>
		<li><?php 	
		if ($curUser['User']['ROLE'] != 'admin')
			echo $html->link(__('Thêm sổ tay', true), array('action' => 'add')); ?> </li>
	</ul>
</div>
<div class="sotays view">
<h2><?php  __('Sổ tay');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>

		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nông hộ:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sotay['Nongho']['TEN_NH']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Giống lúa:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sotay['Gionglua']['TEN_GL']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mùa vụ:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sotay['MuaVue']['TEN_MUA']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tên trạm:'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sotay['Trambvtv']['TEN_TR']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Năm'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sotay['Nam']['NAM']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Diện tích ruộng'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sotay['Sotay']['DTR']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Thời gian gieo cấy'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $sotay['Sotay']['TGGC']; ?>
			&nbsp;
		</dd>
	</dl>
</div>

